first version of mqueue with disk writes