assets middleware

updating assets middleware to ensure `dest` is available