tried to implement queue save. still needs work