implements project path magic so file download on server works